package ${viewModule.viewPacking}.service;

import ${viewModule.viewPacking}.entity.${entityName};
import com.baomidou.mybatisplus.extension.service.IService;
<#list detailedTable as sub>
import ${viewModule.viewPacking}.entity.${sub};
</#list>
import java.util.List;
import java.io.Serializable;
import java.util.Collection;

public interface I${entityName}Service extends IService<${entityName}> {


    /**
    * 添加一对多
    *
    */
    public void saveMain(${entityName} ${entityName?uncap_first},<#list detailedTable as sub>List<${sub}> ${sub?uncap_first}List<#if sub_has_next>,</#if></#list>) ;

    /**
    * 修改一对多
    *
    */
    public void updateMain(${entityName} ${entityName?uncap_first},<#list detailedTable as sub>List<${sub}> ${sub?uncap_first}List<#if sub_has_next>,</#if></#list>);

    /**
    * 删除一对多
    */
    public void delMain (String id);

    /**
    * 批量删除一对多
    */
    public void delBatchMain (Collection<? extends Serializable> idList);


}